package design_pattern.abstract_factory;

public class ShapeFactory extends AbstractFactory{
    @Override
    public Shape getShape(String name){
        if(name==null) {
            return null;
        }
        if(name.equalsIgnoreCase("circle")) {
            return new Circle();
        }else if(name.equalsIgnoreCase("square")){
            return new Sqare();
        }else if(name.equalsIgnoreCase("Rectangle")){
            return new Rectangle();
        }
        return null;
    }

    @Override
    public Color getColor(String name) {
        return null;
    }
}
